﻿lastScrollY = 0;
function heartBeat() {
    var diffY;
    if (document.documentElement && document.documentElement.scrollTop)
        diffY = document.documentElement.scrollTop;
    else if (document.body)
        diffY = document.body.scrollTop
    else
    { /*Netscape stuff*/ }

    //alert(diffY);
    percent = .1 * (diffY - lastScrollY);
    if (percent > 0) percent = Math.ceil(percent);
    else percent = Math.floor(percent);

    document.getElementById("kefu14").style.top = parseInt(document.getElementById

("kefu14").style.top) + percent + "px";

    lastScrollY = lastScrollY + percent;
    //alert(lastScrollY);
}


var str = "<div id=\"kefu14\" style='left:10px;position:absolute;top:100px;'>";
str += "<div><img src='images/top.jpg' /></div>";
str += "<ul class='zx_bg _ul'>";
str += "<li class='red'>乾坤版</li>";
str += "<li><input  type='button'  style='cursor:pointer'  value='订购咨询' class='dg' onclick=\"window.open('http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=65833&jid=2481090829&skillId=6532&enterurl=http%3A%2F%2Fchat8%2Elive800%2Ecom%3A8080%2Flive800%2Fpreview%2Ejsp&tm=1304425238338')\"/></li>";
str += "<li><input  type='button'  style='cursor:pointer'  value='客服咨询' class='zx' onclick=\"window.open('http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=65833&jid=2481090829&skillId=6533&enterurl=http%3A%2F%2Fchat8%2Elive800%2Ecom%3A8080%2Flive800%2Fpreview%2Ejsp&tm=1304425279221')\"/></li>";

str += "<li class='red'>睿讯通专业版</li>";
str += "<li><input  type='button'  style='cursor:pointer'  value='订购咨询' class='dg'  onclick=\"window.open('http://chat10.live800.com/live800/chatClient/chatbox.jsp?jid=3968645766&companyID=87735&configID=163194&skillId=8757&enterurl=http%3A%2F%2Fchat10%2Elive800%2Ecom%3A8080%2Flive800%2Fpreview%2Ejsp&tm=1299136645122')\"/></li>";
str += "<li><input  type='button'   style='cursor:pointer' value='客服咨询' class='zx'  onclick=\"window.open('http://chat10.live800.com/live800/chatClient/chatbox.jsp?jid=3968645766&companyID=87735&configID=163194&skillId=8758&enterurl=http%3A%2F%2Fwww%2Eemstock%2Ecom%2Ecn%2Fdjc%2Findex%2Ehtml&tm=1302605928056')\"/></li>";

str += "</ul>";
str += "<div><img src='images/bottom.jpg' /></div>";
str += "</div>";

suspendcode14 = str;
document.write(suspendcode14);
window.setInterval("heartBeat()", 1);